55问答网
所有问题
当前搜索:
oracle字段包含a字段 位置
ORACLE
笔试题:存在表T(a,b,c,d),要根据
字段
c排序后取第21—30条记录显 ...
答:
1.select * from (select c.*,rownum as rn from (select * from t order by c desc) c) where rn between 21 and 30;2.select * from (select * from test order by c desc) x where rownum < 30 minus select * from (select * from test order by c desc) y where rownum <...
oracle
中
字段
中
包含
!@#符号怎么模糊查询?
答:
模糊查询用%%代替 按你的条件就是 where
a
.xxxx like '%!%' or a.xxxx like '%@%' or a.xxxx like '%#%'
oracle
怎么将一张表中某一列
字段
全部更新为固定值?
答:
1、update Table set
a
= '1111111111'2、update Table set a = lpad('1', length(a), '1')
ORACLE数据库
视图里面判断当某
字段
值重复就判断另一字段是否等于特定值...
答:
select A,B,C from tb a where not exists (select 1 from tb b where a.A=b.A and a.rowid<>b.rowid) or a.B='x';要嘛没有重复记录,要嘛B
字段
=x
用SQL语句取出表A中
字段a
like 表B中的字段b的记录,怎么实现?
答:
select * from A where exists(select 1 from B where charindex(B.b ,A.a) > 0)--
oracle
select * from A where exists(select 1 from B where instr(A.a,B.b,1,1) > 0)
oracle
求
字段
重复情况,请大神帮写语句!!
答:
没看明白你的意思。你是想找出重复的记录?select
字段A
,字段B from 表 group by 字段A,字段B having count(*) > 1;
Oracle
中表空间内全局搜索字符串的问题
答:
select
A
.TABLE_NAME,A.COLUMN_NAME from USER_TAB_COLUMNS A,TABS B WHERE A.TABLE_NAME=B.TABLE_NAME AND B.tablespace_name='USERS' ORDER BY A.TABLE_NAME,A.COLUMN_NAME;begin open cur_data;loop fetch cur_data into v_tablename,v_cloumn_name;exit when cur_data%notfound;--...
oracle
从第一个不是0开始开始选择
答:
select * from table where id > (select * from table wnere id='0')
oracle数据库
,sql语句保存在A表B
字段
中,现需执行B字段中的SQL语句...
答:
你是想将B
字段
中所有SQL的结果合并吧?如果保存的是SQL,那么只能用游标一条条执行,将结果统一放到一个表中后,再查询出来。
查看
Oracle的
表中有哪些索引用user
答:
* 对同一个
字段
可以同时定义FOREIGN KEY约束和NOT NULL约束定义了FOREIGN KEY约束的字段称为"外部码字段",被FORGIEN KEY约束引用的字段称为"引用码字段",引用码必须是主码或唯一码,
包含
外部码的表称为子表,包含引用码的表称为父表.A:create table employees(...,deptno number(3) NOT NULL,constraint emp_de...
棣栭〉
<涓婁竴椤
6
7
8
9
11
12
13
14
10
15
涓嬩竴椤
灏鹃〉
其他人还搜